﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="QuShuiJHSR.aspx.cs" Inherits="Web.Pages.QuShui.DiXiaS.JiHuaGL.QuShuiJH.QuShuiJHSR" Theme="Default" %>

<%@ Register Assembly="DevExpress.Web.v15.2, Version=15.2.9.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Namespace="DevExpress.Web" TagPrefix="dx" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <script src="../../../../../JS/jquery.js"></script>   
    <script src="../../../../../JS/AddEditCancel.js"></script>
    
    <script type="text/javascript">
        function display(op, id) {
            hdCollection.Set("ID", id);
            if (op == "add") {
                btnAdd.SetVisible(false);
                lblOperateTip.SetText("添加");
                txtBianHao.SetText("");
                txtBianHao.SetEnabled(true);
                txtMingCheng.SetText("");
                txtMingCheng.SetEnabled(true);
                txtQuShuiJH.SetText("");
                txtQuShuiJH.SetEnabled(true);
                listCover(true, "divList");
                $("#GridViewContentTable").show();
                txtBianHao.Focus();
            }
           else if (op == "edit") {
                lblOperateTip.SetText("修改");
                txtBianHao.SetEnabled(false);
                txtMingCheng.SetEnabled(false);
                //txtQuShuiJH.SetEnabled(true);
                listCover(true, "divList");
                $("#GridViewContentTable").show();
                ASPxCallback1.PerformCallback("setinfo");
                txtQuShuiJH.Focus();
            }
            else {
                $("#GridViewContentTable").hide();
                listCover(false, "divList");
            }
        }

        function save() {
            //if (txtQuShuiJH.GetText() == "") {
            //    alert("取水计划量必须输入！");
            //    txtQuShuiJH.Focus();
            //    return;
            //}
            ASPxCallback1.PerformCallback("save");
        }

        function saveBatch() {
            ASPxCallback1.PerformCallback("saveBatch");
        }

        function ASPxCallback1Complete(rs) {
            var objs = eval('(' + rs + ')');
            var type = objs.type;
            if (type == "setinfo") {
                //txtBianHao.SetText(arr[2]);
                //txtMingCheng.SetText(arr[3]);

                txtQSL.SetText(objs.QSL);
                txtQSL1.SetText(objs.QSL1);
                txtQSL2.SetText(objs.QSL2);
                txtQSL3.SetText(objs.QSL3);
                txtQSL4.SetText(objs.QSL4);
                txtQSL5.SetText(objs.QSL5);
                txtQSL6.SetText(objs.QSL6);
                txtQSL7.SetText(objs.QSL7);
                txtQSL8.SetText(objs.QSL8);
                txtQSL9.SetText(objs.QSL9);
                txtQSL10.SetText(objs.QSL10);
                txtQSL11.SetText(objs.QSL11);
                txtQSL12.SetText(objs.QSL12);

                txtQuShuiJH.SetText(objs.QuShuiJH);
                txtQuShuiJH1.SetText(objs.YHSQLY1);
                txtQuShuiJH2.SetText(objs.YHSQLY2);
                txtQuShuiJH3.SetText(objs.YHSQLY3);
                txtQuShuiJH4.SetText(objs.YHSQLY4);
                txtQuShuiJH5.SetText(objs.YHSQLY5);
                txtQuShuiJH6.SetText(objs.YHSQLY6);
                txtQuShuiJH7.SetText(objs.YHSQLY7);
                txtQuShuiJH8.SetText(objs.YHSQLY8);
                txtQuShuiJH9.SetText(objs.YHSQLY9);
                txtQuShuiJH10.SetText(objs.YHSQLY10);
                txtQuShuiJH11.SetText(objs.YHSQLY11);
                txtQuShuiJH12.SetText(objs.YHSQLY12);
                txtShenQingLY.SetText(objs.ShenQingLY);

                txtJianYiL.SetText(objs.JianYiL);
                txtJianYiL1.SetText(objs.YWYJYL1);
                txtJianYiL2.SetText(objs.YWYJYL2);
                txtJianYiL3.SetText(objs.YWYJYL3);
                txtJianYiL4.SetText(objs.YWYJYL4);
                txtJianYiL5.SetText(objs.YWYJYL5);
                txtJianYiL6.SetText(objs.YWYJYL6);
                txtJianYiL7.SetText(objs.YWYJYL7);
                txtJianYiL8.SetText(objs.YWYJYL8);
                txtJianYiL9.SetText(objs.YWYJYL9);
                txtJianYiL10.SetText(objs.YWYJYL10);
                txtJianYiL11.SetText(objs.YWYJYL11);
                txtJianYiL12.SetText(objs.YWYJYL12);
                txtJianYiLY.SetText(objs.JianYiLY);

                txtShenHeL.SetText(objs.ShenHeL);
                txtShenHeL1.SetText(objs.KZSHL1);
                txtShenHeL2.SetText(objs.KZSHL2);
                txtShenHeL3.SetText(objs.KZSHL3);
                txtShenHeL4.SetText(objs.KZSHL4);
                txtShenHeL5.SetText(objs.KZSHL5);
                txtShenHeL6.SetText(objs.KZSHL6);
                txtShenHeL7.SetText(objs.KZSHL7);
                txtShenHeL8.SetText(objs.KZSHL8);
                txtShenHeL9.SetText(objs.KZSHL9);
                txtShenHeL10.SetText(objs.KZSHL10);
                txtShenHeL11.SetText(objs.KZSHL11);
                txtShenHeL12.SetText(objs.KZSHL12);
                txtShenHeLY.SetText(objs.ShenHeLY);

                txtShenPiL.SetText(objs.ShenPiL);
                txtShenPiL1.SetText(objs.CZSPL1);
                txtShenPiL2.SetText(objs.CZSPL2);
                txtShenPiL3.SetText(objs.CZSPL3);
                txtShenPiL4.SetText(objs.CZSPL4);
                txtShenPiL5.SetText(objs.CZSPL5);
                txtShenPiL6.SetText(objs.CZSPL6);
                txtShenPiL7.SetText(objs.CZSPL7);
                txtShenPiL8.SetText(objs.CZSPL8);
                txtShenPiL9.SetText(objs.CZSPL9);
                txtShenPiL10.SetText(objs.CZSPL10);
                txtShenPiL11.SetText(objs.CZSPL11);
                txtShenPiL12.SetText(objs.CZSPL12);
                txtShenPiLY.SetText(objs.ShenPiLY);
            }
            else if (type == "save") {
                if (objs.success) {
                    $("#GridViewContentTable").hide();
                    listCover(false, "divList");
                    if (objs.role == 100027) gvList.PerformCallback();
                    else if (objs.role == 100023) gvListYwy.PerformCallback();
                    else if (objs.role == 100000) gvListKZ.PerformCallback();
                    else if (objs.role == 1001) gvListCZ.PerformCallback();
                    //btnQuery.onClick();
                }
                else {
                    alert(objs.msg);
                }
            }
            else if (type == "saveBatch") {
                if (objs.success) {
                    if (objs.role == 100027) gvList.PerformCallback();
                    else if (objs.role == 100023) gvListYwy.PerformCallback();
                    else if (objs.role == 100000) gvListKZ.PerformCallback();
                    else if (objs.role == 1001) gvListCZ.PerformCallback();
                    //btnQuery.onClick();
                }
                else {
                    alert(objs.msg);
                }
            }
    }

        function begincall() {
            loadpanel1.Show();
        }
        function endcall(gv) {
            loadpanel1.Hide();
            //定位添加或修改的记录
            var oid = hdCollection.Get("OperateID");
            var index = -1;
            if (oid != -1 && typeof (oid) != undefined) {
                for (var i = 0; i < gv.GetVisibleRowsOnPage() ; i++) {
                    if (gv.GetRowKey(i) == oid) {
                        index = i;
                    }
                }
                if (index != -1) {
                    gv.SetFocusedRowIndex(index);
                    gv.MakeRowVisible(index);
                    hdCollection.Set("OperateID", -1);
                }
            }
        }

        function toInt(v) {
            var val = parseInt(v * 100);
            if (isNaN(val)) return 0;
            else return val;
        }

        function sumSL(tp) {
            if (1 == tp) {
                var sum = toInt(txtQuShuiJH1.GetText()) + toInt(txtQuShuiJH2.GetText())
                        + toInt(txtQuShuiJH3.GetText()) + toInt(txtQuShuiJH4.GetText())
                        + toInt(txtQuShuiJH5.GetText()) + toInt(txtQuShuiJH6.GetText())
                        + toInt(txtQuShuiJH7.GetText()) + toInt(txtQuShuiJH8.GetText())
                        + toInt(txtQuShuiJH9.GetText()) + toInt(txtQuShuiJH10.GetText())
                        + toInt(txtQuShuiJH11.GetText()) + toInt(txtQuShuiJH12.GetText());
                txtQuShuiJH.SetText((sum / 100).toFixed(2));
            }
            else if (2 == tp) {
                var sum = toInt(txtJianYiL1.GetText()) + toInt(txtJianYiL2.GetText())
                        + toInt(txtJianYiL3.GetText()) + toInt(txtJianYiL4.GetText())
                        + toInt(txtJianYiL5.GetText()) + toInt(txtJianYiL6.GetText())
                        + toInt(txtJianYiL7.GetText()) + toInt(txtJianYiL8.GetText())
                        + toInt(txtJianYiL9.GetText()) + toInt(txtJianYiL10.GetText())
                        + toInt(txtJianYiL11.GetText()) + toInt(txtJianYiL12.GetText());
                txtJianYiL.SetText((sum / 100).toFixed(2));
            }
            else if (3 == tp) {
                var sum = toInt(txtShenHeL1.GetText()) + toInt(txtShenHeL2.GetText())
                        + toInt(txtShenHeL3.GetText()) + toInt(txtShenHeL4.GetText())
                        + toInt(txtShenHeL5.GetText()) + toInt(txtShenHeL6.GetText())
                        + toInt(txtShenHeL7.GetText()) + toInt(txtShenHeL8.GetText())
                        + toInt(txtShenHeL9.GetText()) + toInt(txtShenHeL10.GetText())
                        + toInt(txtShenHeL11.GetText()) + toInt(txtShenHeL12.GetText());
                txtShenHeL.SetText((sum / 100).toFixed(2));
            }
            else if (4 == tp) {
                var sum = toInt(txtShenPiL1.GetText()) + toInt(txtShenPiL2.GetText())
                        + toInt(txtShenPiL3.GetText()) + toInt(txtShenPiL4.GetText())
                        + toInt(txtShenPiL5.GetText()) + toInt(txtShenPiL6.GetText())
                        + toInt(txtShenPiL7.GetText()) + toInt(txtShenPiL8.GetText())
                        + toInt(txtShenPiL9.GetText()) + toInt(txtShenPiL10.GetText())
                        + toInt(txtShenPiL11.GetText()) + toInt(txtShenPiL12.GetText());
                txtShenPiL.SetText((sum / 100).toFixed(2));
                }
}
    </script>
    <style type="text/css">
        .FloatLeft { float: left; }
        .FloatRight { float: right; }
        .HideWork { display: none; }
    </style>
</head>
<body>
    <form id="form1" runat="server">
        <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
        <div class="tabletitle1" align="center">
           取水计划输入
        </div>
        <dx:ASPxHiddenField ID="hdCollection" ClientInstanceName="hdCollection" runat="server"></dx:ASPxHiddenField>
        <dx:ASPxCallback ID="ASPxCallback1" ClientInstanceName="ASPxCallback1" runat="server" OnCallback="ASPxCallback1_Callback" ClientSideEvents-CallbackComplete="function(s,e){ASPxCallback1Complete(e.result);}"></dx:ASPxCallback>
        <dx:ASPxLoadingPanel ID="ASPxLoadingPanel1" ClientInstanceName="loadpanel1" runat="server" ContainerElementID="gvList" Modal="true" Theme="Metropolis" ShowImage="false" Text="加载中"></dx:ASPxLoadingPanel>
        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
            <ContentTemplate>
                <div>
                    <table style="width: 100%; margin: auto; float: left;">
                        <tr>
                            <td align="left" style="width: 5%">年份：
                            </td>
                            <td align="left" style="width: 18%">
                                <dx:ASPxComboBox ID="cmbNianF1" runat="server" Width="60%" OnSelectedIndexChanged="btnQuery_Click" AutoPostBack="true">
                                </dx:ASPxComboBox>
                            </td>
                            <td>
                                <dx:ASPxRadioButtonList ID="rblWorktype" runat="server" RepeatColumns="3" SelectedIndex="0" Width="220px" AutoPostBack="True" OnSelectedIndexChanged="btnQuery_Click">
                                    <Items>
                                        <dx:ListEditItem Selected="True" Text="待处理" Value="0" />
                                        <dx:ListEditItem Text="已提交" Value="1" />
                                        <dx:ListEditItem Text="全部" Value="2" />
                                    </Items>
                                </dx:ASPxRadioButtonList>
                            </td>
                            <td align="left" style="width: 18%">
                                <dx:ASPxComboBox ID="cmbRole" runat="server" Width="60%" AutoPostBack="true" ClientVisible="False" OnSelectedIndexChanged="btnQuery_Click" ClientInstanceName="cmbRole">
                                </dx:ASPxComboBox>
                            </td>
                            <td>
                                <dx:ASPxLabel ID="lbQuShui" ClientInstanceName="txtKaiCai" runat="server" Visible="False" >
                                </dx:ASPxLabel>
                            </td>
                             <td>
                                 <dx:ASPxButton ID="btnAdd" ClientInstanceName="btnExprot" runat="server" Text="导入Excel" AutoPostBack="false" Visible="False">
                                 </dx:ASPxButton>
                             </td>
                            <td>
                                <dx:ASPxLabel runat="server" ID="lbcount" ForeColor="Blue"></dx:ASPxLabel>
                            </td>
                            <td style="float:right; text-align: right">
                                    <dx:ASPxButton ID="btnBatch" ClientInstanceName="btnBatch" runat="server" Text="批量提交" AutoPostBack="false" UseSubmitBehavior="false" ClientSideEvents-Click="function(s,e){saveBatch();}" CssClass="FloatRight">
                                    </dx:ASPxButton>
                            </td>
                            
                        </tr>
                    </table>

                    <div id="divList">
                        <!-- 内勤申请 -->
                        <dx:ASPxGridView ID="gvList" ClientInstanceName="gvList" runat="server" AutoGenerateColumns="False" KeyFieldName="S_QUSHUIKBH" Theme="Aqua1" 
                            Settings-ShowVerticalScrollBar="true" Width="100%" OnCustomCallback="gvList_CustomCallback" OnCustomColumnDisplayText="gvList_CustomColumnDisplayText">
                            <Columns>
                                <dx:GridViewDataTextColumn Caption="序号" UnboundType="String" VisibleIndex="0" Width="40px"></dx:GridViewDataTextColumn>
                                <dx:GridViewDataTextColumn FieldName="S_QUSHUIKBH" Caption="取水口号" Width="70px">
                                </dx:GridViewDataTextColumn>
                                <dx:GridViewDataTextColumn FieldName="S_QUSHUIKM" Caption="取水口名" Width="170px">
                                </dx:GridViewDataTextColumn>
                                <dx:GridViewDataTextColumn FieldName="S_YONGHUH" Caption="用户号" Width="70px">
                                </dx:GridViewDataTextColumn>
                                <dx:GridViewDataTextColumn FieldName="S_YONGHUM" Caption="用户名" Width="170px">
                                </dx:GridViewDataTextColumn>
                                <dx:GridViewDataTextColumn FieldName="QSL" Caption="年取水量（万立方米）" Width="120px">
                                </dx:GridViewDataTextColumn>
                                <dx:GridViewDataTextColumn FieldName="YHSQL" Caption="申请量（万立方米）" Width="120px">
                                </dx:GridViewDataTextColumn>
                                <dx:GridViewDataTextColumn FieldName="YHSQLY" Caption="申请理由" Width="0px">
                                </dx:GridViewDataTextColumn>
                                <dx:GridViewDataTextColumn Width="35px" FixedStyle="Left">
                                    <DataItemTemplate>
                                        <a href="#" onclick="display('edit','<%#Eval("S_QUSHUIKBH")%>')"
                                            class="<%#Convert.ToInt32(Eval("I_WORKT")) == 0 ? "" : "HideWork"%>">申请</a>
                                    </DataItemTemplate>
                                </dx:GridViewDataTextColumn>
                            </Columns>
                            <Settings  VerticalScrollBarMode="Visible" VerticalScrollableHeight="200" HorizontalScrollBarMode="Auto"/>
                            <SettingsPager Mode="EndlessPaging" PageSize="100"  FirstPageButton-Visible="true" />
                            <SettingsBehavior ProcessFocusedRowChangedOnServer="false" ColumnResizeMode="Control"  />
                            <ClientSideEvents Init="function(s,e){AdjustSize(200,gvList);}" BeginCallback="function(s,e){begincall();}" EndCallback="function(s,e){endcall(s);}" />
                        </dx:ASPxGridView>

                        <!-- 业务员建议 -->
                        <dx:ASPxGridView ID="gvListYwy" ClientInstanceName="gvListYwy" runat="server" AutoGenerateColumns="False" KeyFieldName="S_QUSHUIKBH" Theme="Aqua1" 
                            Settings-ShowVerticalScrollBar="true" Width="100%" OnCustomCallback="gvList_CustomCallback" Visible="False" OnCustomColumnDisplayText="gvList_CustomColumnDisplayText">
                            <Columns>
                                <dx:GridViewDataTextColumn Caption="序号" UnboundType="String" VisibleIndex="0" Width="40px"></dx:GridViewDataTextColumn>
                                <dx:GridViewDataTextColumn FieldName="S_QUSHUIKBH" Caption="取水口号" Width="70px">
                                </dx:GridViewDataTextColumn>
                                <dx:GridViewDataTextColumn FieldName="S_QUSHUIKM" Caption="取水口名" Width="170px">
                                </dx:GridViewDataTextColumn>
                                <dx:GridViewDataTextColumn FieldName="S_YONGHUH" Caption="用户号" Width="70px">
                                </dx:GridViewDataTextColumn>
                                <dx:GridViewDataTextColumn FieldName="S_YONGHUM" Caption="用户名" Width="170px">
                                </dx:GridViewDataTextColumn>
                                <dx:GridViewDataTextColumn FieldName="QSL" Caption="年取水量（万立方米）" Width="120px">
                                </dx:GridViewDataTextColumn>
                                <dx:GridViewDataTextColumn FieldName="YHSQL" Caption="申请量（万立方米）" Width="120px">
                                </dx:GridViewDataTextColumn>
                                <dx:GridViewDataTextColumn FieldName="YHSQLY" Caption="申请理由" Width="0px">
                                </dx:GridViewDataTextColumn>
                                <dx:GridViewDataTextColumn FieldName="YWYJYL" Caption="业务员建议量（万立方米）" Width="120px">
                                </dx:GridViewDataTextColumn>
                                <dx:GridViewDataTextColumn FieldName="YWYJY" Caption="业务员建议" Width="0px">
                                </dx:GridViewDataTextColumn>
                                <dx:GridViewDataTextColumn Width="35px" FixedStyle="Left">
                                    <DataItemTemplate>
                                        <a href="#" onclick="display('edit','<%#Eval("S_QUSHUIKBH")%>')"
                                            class="<%#Convert.ToInt32(Eval("I_WORKT")) == 0 ? "" : "HideWork"%>">建议</a>
                                    </DataItemTemplate>
                                </dx:GridViewDataTextColumn>
                            </Columns>
                            <Settings  VerticalScrollBarMode="Visible" VerticalScrollableHeight="200" HorizontalScrollBarMode="Auto"/>
                            <SettingsPager Mode="EndlessPaging" PageSize="100"  FirstPageButton-Visible="true" />
                            <SettingsBehavior ProcessFocusedRowChangedOnServer="false" ColumnResizeMode="Control"  />
                            <ClientSideEvents Init="function(s,e){AdjustSize(200,gvListYwy);}" BeginCallback="function(s,e){begincall();}" EndCallback="function(s,e){endcall(s);}" />
                        </dx:ASPxGridView>

                        <!-- 科长审核 -->
                        <dx:ASPxGridView ID="gvListKZ" ClientInstanceName="gvListKZ" runat="server" AutoGenerateColumns="False" KeyFieldName="S_QUSHUIKBH" Theme="Aqua1" 
                            Settings-ShowVerticalScrollBar="true" Width="100%" OnCustomCallback="gvList_CustomCallback" Visible="False" OnCustomColumnDisplayText="gvList_CustomColumnDisplayText">
                            <Columns>
                                <dx:GridViewDataTextColumn Caption="序号" UnboundType="String" VisibleIndex="0" Width="40px"></dx:GridViewDataTextColumn>
                                <dx:GridViewDataTextColumn FieldName="S_QUSHUIKBH" Caption="取水口号" Width="70px">
                                </dx:GridViewDataTextColumn>
                                <dx:GridViewDataTextColumn FieldName="S_QUSHUIKM" Caption="取水口名" Width="170px">
                                </dx:GridViewDataTextColumn>
                                <dx:GridViewDataTextColumn FieldName="S_YONGHUH" Caption="用户号" Width="70px">
                                </dx:GridViewDataTextColumn>
                                <dx:GridViewDataTextColumn FieldName="S_YONGHUM" Caption="用户名" Width="170px">
                                </dx:GridViewDataTextColumn>
                                <dx:GridViewDataTextColumn FieldName="QSL" Caption="年取水量（万立方米）" Width="120px">
                                </dx:GridViewDataTextColumn>
                                <dx:GridViewDataTextColumn FieldName="YHSQL" Caption="申请量（万立方米）" Width="120px">
                                </dx:GridViewDataTextColumn>
                                <dx:GridViewDataTextColumn FieldName="YHSQLY" Caption="申请理由" Width="0px">
                                </dx:GridViewDataTextColumn>
                                <dx:GridViewDataTextColumn FieldName="YWYJYL" Caption="业务员建议量（万立方米）" Width="120px">
                                </dx:GridViewDataTextColumn>
                                <dx:GridViewDataTextColumn FieldName="YWYJY" Caption="业务员建议" Width="0px">
                                </dx:GridViewDataTextColumn>
                                <dx:GridViewDataTextColumn FieldName="KZSHL" Caption="科长审核量（万立方米）" Width="120px">
                                </dx:GridViewDataTextColumn>
                                <dx:GridViewDataTextColumn FieldName="KZSHYJ" Caption="科长审核意见" Width="0px">
                                </dx:GridViewDataTextColumn>
                                <dx:GridViewDataTextColumn Width="35px" FixedStyle="Left">
                                    <DataItemTemplate>
                                        <a href="#" onclick="display('edit','<%#Eval("S_QUSHUIKBH")%>')"
                                            class="<%#Convert.ToInt32(Eval("I_WORKT")) == 0 ? "" : "HideWork"%>">审核</a>
                                    </DataItemTemplate>
                                </dx:GridViewDataTextColumn>
                            </Columns>
                            <Settings  VerticalScrollBarMode="Visible" VerticalScrollableHeight="200" HorizontalScrollBarMode="Auto"/>
                            <SettingsPager Mode="EndlessPaging" PageSize="100"  FirstPageButton-Visible="true" />
                            <SettingsBehavior ProcessFocusedRowChangedOnServer="false" ColumnResizeMode="Control"  />
                            <ClientSideEvents Init="function(s,e){AdjustSize(200,gvListKZ);}" BeginCallback="function(s,e){begincall();}" EndCallback="function(s,e){endcall(s);}" />
                        </dx:ASPxGridView>

                        <!-- 处长审批 -->
                        <dx:ASPxGridView ID="gvListCZ" ClientInstanceName="gvListCZ" runat="server" AutoGenerateColumns="False" KeyFieldName="S_QUSHUIKBH" Theme="Aqua1" 
                            Settings-ShowVerticalScrollBar="true" Width="100%" OnCustomCallback="gvList_CustomCallback" Visible="False" OnCustomColumnDisplayText="gvList_CustomColumnDisplayText">
                            <Columns>
                                <dx:GridViewDataTextColumn Caption="序号" UnboundType="String" VisibleIndex="0" Width="40px"></dx:GridViewDataTextColumn>
                                <dx:GridViewDataTextColumn FieldName="S_QUSHUIKBH" Caption="取水口号" Width="70px">
                                </dx:GridViewDataTextColumn>
                                <dx:GridViewDataTextColumn FieldName="S_QUSHUIKM" Caption="取水口名" Width="170px">
                                </dx:GridViewDataTextColumn>
                                <dx:GridViewDataTextColumn FieldName="S_YONGHUH" Caption="用户号" Width="70px">
                                </dx:GridViewDataTextColumn>
                                <dx:GridViewDataTextColumn FieldName="S_YONGHUM" Caption="用户名" Width="170px">
                                </dx:GridViewDataTextColumn>
                                <dx:GridViewDataTextColumn FieldName="QSL" Caption="年取水量（万立方米）" Width="120px">
                                </dx:GridViewDataTextColumn>
                                <dx:GridViewDataTextColumn FieldName="YHSQL" Caption="申请量（万立方米）" Width="120px">
                                </dx:GridViewDataTextColumn>
                                <dx:GridViewDataTextColumn FieldName="YHSQLY" Caption="申请理由" Width="1px">
                                </dx:GridViewDataTextColumn>
                                <dx:GridViewDataTextColumn FieldName="YWYJYL" Caption="业务员建议量（万立方米）" Width="120px">
                                </dx:GridViewDataTextColumn>
                                <dx:GridViewDataTextColumn FieldName="YWYJY" Caption="业务员建议" Width="0px">
                                </dx:GridViewDataTextColumn>
                                <dx:GridViewDataTextColumn FieldName="KZSHL" Caption="科长审核量（万立方米）" Width="120px">
                                </dx:GridViewDataTextColumn>
                                <dx:GridViewDataTextColumn FieldName="KZSHYJ" Caption="科长审核意见" Width="0px">
                                </dx:GridViewDataTextColumn>
                                <dx:GridViewDataTextColumn FieldName="CZSPL" Caption="处长审批量（万立方米）" Width="120px">
                                </dx:GridViewDataTextColumn>
                                <dx:GridViewDataTextColumn FieldName="CZSPYJ" Caption="处长审批意见" Width="0px">
                                </dx:GridViewDataTextColumn>
                                <dx:GridViewDataTextColumn Width="35px" FixedStyle="Left">
                                    <DataItemTemplate>
                                        <a href="#" onclick="display('edit','<%#Eval("S_QUSHUIKBH")%>')"
                                            class="<%#Convert.ToInt32(Eval("I_WORKT")) == 0 ? "" : "HideWork"%>">审批</a>
                                    </DataItemTemplate>
                                </dx:GridViewDataTextColumn>
                            </Columns>
                            <Settings  VerticalScrollBarMode="Visible" VerticalScrollableHeight="200" HorizontalScrollBarMode="Auto"/>
                            <SettingsPager Mode="EndlessPaging" PageSize="100"  FirstPageButton-Visible="true" />
                            <SettingsBehavior ProcessFocusedRowChangedOnServer="false" ColumnResizeMode="Control"  />
                            <ClientSideEvents Init="function(s,e){AdjustSize(200,gvListCZ);}" BeginCallback="function(s,e){begincall();}" EndCallback="function(s,e){endcall(s);}" />
                        </dx:ASPxGridView>
                    </div>

                   <%-- <div style="text-align: right">
                        <hr />
                        <dx:ASPxButton ID="btnAdd" ClientInstanceName="btnAdd" runat="server" Text="添加" AutoPostBack="false" ClientSideEvents-Click="function(s,e){display('add',-1)}" UseSubmitBehavior="false">
                        </dx:ASPxButton>
                    </div>--%>
                    <div style="height: 3px;"></div>

                    <div id="GridViewContentTable" style="display: none">
                        <div class="tabletitle1" align="center">
                            <dx:ASPxLabel ID="lblOperateTip" runat="server" ClientInstanceName="lblOperateTip" Text="添加"></dx:ASPxLabel>
                        </div>
                        <table style="width: 100%;">
                            <tr style="height: 40px; display:none;">
                                <td style="width: 15%; text-align: right">用户编号：</td>
                                <td style="width: 20%" align="left">
                                    <dx:ASPxTextBox ID="txtBianHao" ClientInstanceName="txtBianHao" runat="server" >
                                        <%--<ClientSideEvents KeyUp="function(s,e){inputNum(s);OnKeyNext(txtMingCheng);}" />--%>
                                    </dx:ASPxTextBox>
                                </td>
                            </tr>
                            <tr style="height: 40px; display:none;">
                                <td style="text-align: right">用户名称：</td>
                                <td align="left">
                                    <dx:ASPxTextBox ID="txtMingCheng" ClientInstanceName="txtMingCheng" runat="server" MaxLength="15">
                                        <%--<ClientSideEvents KeyPress="function(s,e){OnKeyNext(memoMiaoShu);}" />--%>
                                    </dx:ASPxTextBox>
                                </td>

                            </tr>

                            <tr style="display:none;">
                                <td style="text-align: right">按：</td>
                                <td>
                                    <table>
                                        <tr>
                                            <td>
                                                <dx:ASPxComboBox ID="cmbShuRu" runat="server" Width="100%"  AutoPostBack="false">
                                                    <Items>
                                                        <dx:ListEditItem  Text="万立方米" Value="1" />
                                                         <dx:ListEditItem  Text="立方米" Value="2" Selected="true" />
                                                    </Items>
                                                </dx:ASPxComboBox>
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                            </tr>

                            <!-- 量 -->
                            <tr>
                                <td colspan="2">
                                    <table style="width: 100%;">
                                        <tr>
                                            <td></td>
                                            <td style="text-align: center">一月</td>
                                            <td style="text-align: center">二月</td>
                                            <td style="text-align: center">三月</td>
                                            <td style="text-align: center">四月</td>
                                            <td style="text-align: center">五月</td>
                                            <td style="text-align: center">六月</td>
                                            <td style="text-align: center">七月</td>
                                            <td style="text-align: center">八月</td>
                                            <td style="text-align: center">九月</td>
                                            <td style="text-align: center">十月</td>
                                            <td style="text-align: center">十一月</td>
                                            <td style="text-align: center">十二月</td>
                                            <td style="text-align: center">全年</td>
                                        </tr>
                                        <tr>
                                            <td style="text-align: right; width: 100px">实用量：</td>
                                            <td align="left">
                                                <dx:ASPxTextBox ID="txtQSL1" ClientInstanceName="txtQSL1" runat="server" CssClass="FloatLeft" Width="72px" ReadOnly="True"></dx:ASPxTextBox>
                                            </td>
                                            <td align="left">
                                                <dx:ASPxTextBox ID="txtQSL2" ClientInstanceName="txtQSL2" runat="server" CssClass="FloatLeft" Width="72px" ReadOnly="True"></dx:ASPxTextBox>
                                            </td>
                                            <td align="left">
                                                <dx:ASPxTextBox ID="txtQSL3" ClientInstanceName="txtQSL3" runat="server" CssClass="FloatLeft" Width="72px" ReadOnly="True"></dx:ASPxTextBox>
                                            </td>
                                            <td align="left">
                                                <dx:ASPxTextBox ID="txtQSL4" ClientInstanceName="txtQSL4" runat="server" CssClass="FloatLeft" Width="72px" ReadOnly="True"></dx:ASPxTextBox>
                                            </td>
                                            <td align="left">
                                                <dx:ASPxTextBox ID="txtQSL5" ClientInstanceName="txtQSL5" runat="server" CssClass="FloatLeft" Width="72px"  ReadOnly="True"></dx:ASPxTextBox>
                                            </td>
                                            <td align="left">
                                                <dx:ASPxTextBox ID="txtQSL6" ClientInstanceName="txtQSL6" runat="server" CssClass="FloatLeft" Width="72px"  ReadOnly="True"></dx:ASPxTextBox>
                                            </td>
                                            <td align="left">
                                                <dx:ASPxTextBox ID="txtQSL7" ClientInstanceName="txtQSL7" runat="server" CssClass="FloatLeft" Width="72px"  ReadOnly="True"></dx:ASPxTextBox>
                                            </td>
                                            <td align="left">
                                                <dx:ASPxTextBox ID="txtQSL8" ClientInstanceName="txtQSL8" runat="server" CssClass="FloatLeft" Width="72px"  ReadOnly="True"></dx:ASPxTextBox>
                                            </td>
                                            <td align="left">
                                                <dx:ASPxTextBox ID="txtQSL9" ClientInstanceName="txtQSL9" runat="server" CssClass="FloatLeft" Width="72px"  ReadOnly="True"></dx:ASPxTextBox>
                                            </td>
                                            <td align="left">
                                                <dx:ASPxTextBox ID="txtQSL10" ClientInstanceName="txtQSL10" runat="server" CssClass="FloatLeft" Width="72px"  ReadOnly="True"></dx:ASPxTextBox>
                                            </td>
                                            <td align="left">
                                                <dx:ASPxTextBox ID="txtQSL11" ClientInstanceName="txtQSL11" runat="server" CssClass="FloatLeft" Width="72px"  ReadOnly="True"></dx:ASPxTextBox>
                                            </td>
                                            <td align="left">
                                                <dx:ASPxTextBox ID="txtQSL12" ClientInstanceName="txtQSL12" runat="server" CssClass="FloatLeft" Width="72px"  ReadOnly="True"></dx:ASPxTextBox>
                                            </td>
                                            <td align="left">
                                                <dx:ASPxTextBox ID="txtQSL" ClientInstanceName="txtQSL" runat="server" CssClass="FloatLeft" Width="80px"  ReadOnly="True"></dx:ASPxTextBox>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td style="text-align: right; width: 100px">申请量：</td>
                                            <td align="left">
                                                <dx:ASPxTextBox ID="txtQuShuiJH1" ClientInstanceName="txtQuShuiJH1" runat="server" CssClass="FloatLeft" Width="72px" ClientSideEvents-LostFocus="function(s,e){sumSL(1);}"></dx:ASPxTextBox>
                                            </td>
                                            <td align="left">
                                                <dx:ASPxTextBox ID="txtQuShuiJH2" ClientInstanceName="txtQuShuiJH2" runat="server" CssClass="FloatLeft" Width="72px" ClientSideEvents-LostFocus="function(s,e){sumSL(1);}"></dx:ASPxTextBox>
                                            </td>
                                            <td align="left">
                                                <dx:ASPxTextBox ID="txtQuShuiJH3" ClientInstanceName="txtQuShuiJH3" runat="server" CssClass="FloatLeft" Width="72px" ClientSideEvents-LostFocus="function(s,e){sumSL(1);}"></dx:ASPxTextBox>
                                            </td>
                                            <td align="left">
                                                <dx:ASPxTextBox ID="txtQuShuiJH4" ClientInstanceName="txtQuShuiJH4" runat="server" CssClass="FloatLeft" Width="72px" ClientSideEvents-LostFocus="function(s,e){sumSL(1);}"></dx:ASPxTextBox>
                                            </td>
                                            <td align="left">
                                                <dx:ASPxTextBox ID="txtQuShuiJH5" ClientInstanceName="txtQuShuiJH5" runat="server" CssClass="FloatLeft" Width="72px" ClientSideEvents-LostFocus="function(s,e){sumSL(1);}"></dx:ASPxTextBox>
                                            </td>
                                            <td align="left">
                                                <dx:ASPxTextBox ID="txtQuShuiJH6" ClientInstanceName="txtQuShuiJH6" runat="server" CssClass="FloatLeft" Width="72px" ClientSideEvents-LostFocus="function(s,e){sumSL(1);}"></dx:ASPxTextBox>
                                            </td>
                                            <td align="left">
                                                <dx:ASPxTextBox ID="txtQuShuiJH7" ClientInstanceName="txtQuShuiJH7" runat="server" CssClass="FloatLeft" Width="72px" ClientSideEvents-LostFocus="function(s,e){sumSL(1);}"></dx:ASPxTextBox>
                                            </td>
                                            <td align="left">
                                                <dx:ASPxTextBox ID="txtQuShuiJH8" ClientInstanceName="txtQuShuiJH8" runat="server" CssClass="FloatLeft" Width="72px" ClientSideEvents-LostFocus="function(s,e){sumSL(1);}"></dx:ASPxTextBox>
                                            </td>
                                            <td align="left">
                                                <dx:ASPxTextBox ID="txtQuShuiJH9" ClientInstanceName="txtQuShuiJH9" runat="server" CssClass="FloatLeft" Width="72px" ClientSideEvents-LostFocus="function(s,e){sumSL(1);}"></dx:ASPxTextBox>
                                            </td>
                                            <td align="left">
                                                <dx:ASPxTextBox ID="txtQuShuiJH10" ClientInstanceName="txtQuShuiJH10" runat="server" CssClass="FloatLeft" Width="72px" ClientSideEvents-LostFocus="function(s,e){sumSL(1);}"></dx:ASPxTextBox>
                                            </td>
                                            <td align="left">
                                                <dx:ASPxTextBox ID="txtQuShuiJH11" ClientInstanceName="txtQuShuiJH11" runat="server" CssClass="FloatLeft" Width="72px" ClientSideEvents-LostFocus="function(s,e){sumSL(1);}"></dx:ASPxTextBox>
                                            </td>
                                            <td align="left">
                                                <dx:ASPxTextBox ID="txtQuShuiJH12" ClientInstanceName="txtQuShuiJH12" runat="server" CssClass="FloatLeft" Width="72px" ClientSideEvents-LostFocus="function(s,e){sumSL(1);}" ></dx:ASPxTextBox>
                                            </td>
                                            <td align="left">
                                                <dx:ASPxTextBox ID="txtQuShuiJH" ClientInstanceName="txtQuShuiJH" runat="server" CssClass="FloatLeft" Width="80px"  ReadOnly="True" ClientSideEvents-GotFocus="function(s,e){sumSL(1);}"></dx:ASPxTextBox>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td style="text-align: right"><dx:ASPxLabel ID="lblJianYiL" runat="server" Text="建议量："></dx:ASPxLabel></td>
                                            <td align="left">
                                                <dx:ASPxTextBox ID="txtJianYiL1" ClientInstanceName="txtJianYiL1" runat="server" CssClass="FloatLeft" Width="72px" ClientSideEvents-LostFocus="function(s,e){sumSL(2);}"></dx:ASPxTextBox>
                                            </td>
                                            <td align="left">
                                                <dx:ASPxTextBox ID="txtJianYiL2" ClientInstanceName="txtJianYiL2" runat="server" CssClass="FloatLeft" Width="72px" ClientSideEvents-LostFocus="function(s,e){sumSL(2);}"></dx:ASPxTextBox>
                                            </td>
                                            <td align="left">
                                                <dx:ASPxTextBox ID="txtJianYiL3" ClientInstanceName="txtJianYiL3" runat="server" CssClass="FloatLeft" Width="72px" ClientSideEvents-LostFocus="function(s,e){sumSL(2);}"></dx:ASPxTextBox>
                                            </td>
                                            <td align="left">
                                                <dx:ASPxTextBox ID="txtJianYiL4" ClientInstanceName="txtJianYiL4" runat="server" CssClass="FloatLeft" Width="72px" ClientSideEvents-LostFocus="function(s,e){sumSL(2);}"></dx:ASPxTextBox>
                                            </td>
                                            <td align="left">
                                                <dx:ASPxTextBox ID="txtJianYiL5" ClientInstanceName="txtJianYiL5" runat="server" CssClass="FloatLeft" Width="72px" ClientSideEvents-LostFocus="function(s,e){sumSL(2);}"></dx:ASPxTextBox>
                                            </td>
                                            <td align="left">
                                                <dx:ASPxTextBox ID="txtJianYiL6" ClientInstanceName="txtJianYiL6" runat="server" CssClass="FloatLeft" Width="72px" ClientSideEvents-LostFocus="function(s,e){sumSL(2);}"></dx:ASPxTextBox>
                                            </td>
                                            <td align="left">
                                                <dx:ASPxTextBox ID="txtJianYiL7" ClientInstanceName="txtJianYiL7" runat="server" CssClass="FloatLeft" Width="72px" ClientSideEvents-LostFocus="function(s,e){sumSL(2);}"></dx:ASPxTextBox>
                                            </td>
                                            <td align="left">
                                                <dx:ASPxTextBox ID="txtJianYiL8" ClientInstanceName="txtJianYiL8" runat="server" CssClass="FloatLeft" Width="72px" ClientSideEvents-LostFocus="function(s,e){sumSL(2);}"></dx:ASPxTextBox>
                                            </td>
                                            <td align="left">
                                                <dx:ASPxTextBox ID="txtJianYiL9" ClientInstanceName="txtJianYiL9" runat="server" CssClass="FloatLeft" Width="72px" ClientSideEvents-LostFocus="function(s,e){sumSL(2);}"></dx:ASPxTextBox>
                                            </td>
                                            <td align="left">
                                                <dx:ASPxTextBox ID="txtJianYiL10" ClientInstanceName="txtJianYiL10" runat="server" CssClass="FloatLeft" Width="72px" ClientSideEvents-LostFocus="function(s,e){sumSL(2);}"></dx:ASPxTextBox>
                                            </td>
                                            <td align="left">
                                                <dx:ASPxTextBox ID="txtJianYiL11" ClientInstanceName="txtJianYiL11" runat="server" CssClass="FloatLeft" Width="72px" ClientSideEvents-LostFocus="function(s,e){sumSL(2);}"></dx:ASPxTextBox>
                                            </td>
                                            <td align="left">
                                                <dx:ASPxTextBox ID="txtJianYiL12" ClientInstanceName="txtJianYiL12" runat="server" CssClass="FloatLeft" Width="72px" ClientSideEvents-LostFocus="function(s,e){sumSL(2);}"></dx:ASPxTextBox>
                                            </td>
                                            <td align="left">
                                                <dx:ASPxTextBox ID="txtJianYiL" ClientInstanceName="txtJianYiL" runat="server" CssClass="FloatLeft"  Width="80px" ReadOnly="True" ClientSideEvents-GotFocus="function(s,e){sumSL(2);}">
                                                </dx:ASPxTextBox>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td style="text-align: right"><dx:ASPxLabel ID="lblShenHeL" runat="server" Text="审核量："></dx:ASPxLabel></td>
                                            <td align="left">
                                                <dx:ASPxTextBox ID="txtShenHeL1" ClientInstanceName="txtShenHeL1" runat="server" CssClass="FloatLeft" Width="72px" ClientSideEvents-LostFocus="function(s,e){sumSL(3);}"></dx:ASPxTextBox>
                                            </td>
                                            <td align="left">
                                                <dx:ASPxTextBox ID="txtShenHeL2" ClientInstanceName="txtShenHeL2" runat="server" CssClass="FloatLeft" Width="72px" ClientSideEvents-LostFocus="function(s,e){sumSL(3);}"></dx:ASPxTextBox>
                                            </td>
                                            <td align="left">
                                                <dx:ASPxTextBox ID="txtShenHeL3" ClientInstanceName="txtShenHeL3" runat="server" CssClass="FloatLeft" Width="72px" ClientSideEvents-LostFocus="function(s,e){sumSL(3);}"></dx:ASPxTextBox>
                                            </td>
                                            <td align="left">
                                                <dx:ASPxTextBox ID="txtShenHeL4" ClientInstanceName="txtShenHeL4" runat="server" CssClass="FloatLeft" Width="72px" ClientSideEvents-LostFocus="function(s,e){sumSL(3);}"></dx:ASPxTextBox>
                                            </td>
                                            <td align="left">
                                                <dx:ASPxTextBox ID="txtShenHeL5" ClientInstanceName="txtShenHeL5" runat="server" CssClass="FloatLeft" Width="72px" ClientSideEvents-LostFocus="function(s,e){sumSL(3);}"></dx:ASPxTextBox>
                                            </td>
                                            <td align="left">
                                                <dx:ASPxTextBox ID="txtShenHeL6" ClientInstanceName="txtShenHeL6" runat="server" CssClass="FloatLeft" Width="72px" ClientSideEvents-LostFocus="function(s,e){sumSL(3);}"></dx:ASPxTextBox>
                                            </td>
                                            <td align="left">
                                                <dx:ASPxTextBox ID="txtShenHeL7" ClientInstanceName="txtShenHeL7" runat="server" CssClass="FloatLeft" Width="72px" ClientSideEvents-LostFocus="function(s,e){sumSL(3);}"></dx:ASPxTextBox>
                                            </td>
                                            <td align="left">
                                                <dx:ASPxTextBox ID="txtShenHeL8" ClientInstanceName="txtShenHeL8" runat="server" CssClass="FloatLeft" Width="72px" ClientSideEvents-LostFocus="function(s,e){sumSL(3);}"></dx:ASPxTextBox>
                                            </td>
                                            <td align="left">
                                                <dx:ASPxTextBox ID="txtShenHeL9" ClientInstanceName="txtShenHeL9" runat="server" CssClass="FloatLeft" Width="72px" ClientSideEvents-LostFocus="function(s,e){sumSL(3);}"></dx:ASPxTextBox>
                                            </td>
                                            <td align="left">
                                                <dx:ASPxTextBox ID="txtShenHeL10" ClientInstanceName="txtShenHeL10" runat="server" CssClass="FloatLeft" Width="72px" ClientSideEvents-LostFocus="function(s,e){sumSL(3);}"></dx:ASPxTextBox>
                                            </td>
                                            <td align="left">
                                                <dx:ASPxTextBox ID="txtShenHeL11" ClientInstanceName="txtShenHeL11" runat="server" CssClass="FloatLeft" Width="72px" ClientSideEvents-LostFocus="function(s,e){sumSL(3);}"></dx:ASPxTextBox>
                                            </td>
                                            <td align="left">
                                                <dx:ASPxTextBox ID="txtShenHeL12" ClientInstanceName="txtShenHeL12" runat="server" CssClass="FloatLeft" Width="72px" ClientSideEvents-LostFocus="function(s,e){sumSL(3);}"></dx:ASPxTextBox>
                                            </td>
                                            <td align="left">
                                                <dx:ASPxTextBox ID="txtShenHeL" ClientInstanceName="txtShenHeL" runat="server" CssClass="FloatLeft"  Width="80px" ReadOnly="True"  ClientSideEvents-GotFocus="function(s,e){sumSL(3);}">
                                                </dx:ASPxTextBox>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td style="text-align: right"><dx:ASPxLabel ID="lblShenPiL" runat="server" Text="审批量："></dx:ASPxLabel></td>
                                            <td align="left">
                                                <dx:ASPxTextBox ID="txtShenPiL1" ClientInstanceName="txtShenPiL1" runat="server" CssClass="FloatLeft" Width="72px" ClientSideEvents-LostFocus="function(s,e){sumSL(4);}"></dx:ASPxTextBox>
                                            </td>
                                            <td align="left">
                                                <dx:ASPxTextBox ID="txtShenPiL2" ClientInstanceName="txtShenPiL2" runat="server" CssClass="FloatLeft" Width="72px" ClientSideEvents-LostFocus="function(s,e){sumSL(4);}"></dx:ASPxTextBox>
                                            </td>
                                            <td align="left">
                                                <dx:ASPxTextBox ID="txtShenPiL3" ClientInstanceName="txtShenPiL3" runat="server" CssClass="FloatLeft" Width="72px" ClientSideEvents-LostFocus="function(s,e){sumSL(4);}"></dx:ASPxTextBox>
                                            </td>
                                            <td align="left">
                                                <dx:ASPxTextBox ID="txtShenPiL4" ClientInstanceName="txtShenPiL4" runat="server" CssClass="FloatLeft" Width="72px" ClientSideEvents-LostFocus="function(s,e){sumSL(4);}"></dx:ASPxTextBox>
                                            </td>
                                            <td align="left">
                                                <dx:ASPxTextBox ID="txtShenPiL5" ClientInstanceName="txtShenPiL5" runat="server" CssClass="FloatLeft" Width="72px" ClientSideEvents-LostFocus="function(s,e){sumSL(4);}"></dx:ASPxTextBox>
                                            </td>
                                            <td align="left">
                                                <dx:ASPxTextBox ID="txtShenPiL6" ClientInstanceName="txtShenPiL6" runat="server" CssClass="FloatLeft" Width="72px" ClientSideEvents-LostFocus="function(s,e){sumSL(4);}"></dx:ASPxTextBox>
                                            </td>
                                            <td align="left">
                                                <dx:ASPxTextBox ID="txtShenPiL7" ClientInstanceName="txtShenPiL7" runat="server" CssClass="FloatLeft" Width="72px" ClientSideEvents-LostFocus="function(s,e){sumSL(4);}"></dx:ASPxTextBox>
                                            </td>
                                            <td align="left">
                                                <dx:ASPxTextBox ID="txtShenPiL8" ClientInstanceName="txtShenPiL8" runat="server" CssClass="FloatLeft" Width="72px" ClientSideEvents-LostFocus="function(s,e){sumSL(4);}"></dx:ASPxTextBox>
                                            </td>
                                            <td align="left">
                                                <dx:ASPxTextBox ID="txtShenPiL9" ClientInstanceName="txtShenPiL9" runat="server" CssClass="FloatLeft" Width="72px" ClientSideEvents-LostFocus="function(s,e){sumSL(4);}"></dx:ASPxTextBox>
                                            </td>
                                            <td align="left">
                                                <dx:ASPxTextBox ID="txtShenPiL10" ClientInstanceName="txtShenPiL10" runat="server" CssClass="FloatLeft" Width="72px" ClientSideEvents-LostFocus="function(s,e){sumSL(4);}"></dx:ASPxTextBox>
                                            </td>
                                            <td align="left">
                                                <dx:ASPxTextBox ID="txtShenPiL11" ClientInstanceName="txtShenPiL11" runat="server" CssClass="FloatLeft" Width="72px" ClientSideEvents-LostFocus="function(s,e){sumSL(4);}"></dx:ASPxTextBox>
                                            </td>
                                            <td align="left">
                                                <dx:ASPxTextBox ID="txtShenPiL12" ClientInstanceName="txtShenPiL12" runat="server" CssClass="FloatLeft" Width="72px" ClientSideEvents-LostFocus="function(s,e){sumSL(4);}"></dx:ASPxTextBox>
                                            </td>
                                            <td align="left">
                                                <dx:ASPxTextBox ID="txtShenPiL" ClientInstanceName="txtShenPiL" runat="server" CssClass="FloatLeft"  Width="80px" ReadOnly="True"  ClientSideEvents-GotFocus="function(s,e){sumSL(4);}">
                                                </dx:ASPxTextBox>
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                            </tr>

                            <tr><td colspan="2" style="height: 20px"></td></tr>

                            <!-- 理由、意见 -->
                            <tr>
                                <td colspan="2">
                                    <table style="width: 100%;">
                                        <tr>
                                            <td style="text-align: right; width: 100px">申请理由：</td>
                                            <td align="left">
                                                <dx:ASPxTextBox ID="txtShenQingLY" ClientInstanceName="txtShenQingLY" runat="server" Width="600px" CssClass="FloatLeft" >
                                                </dx:ASPxTextBox>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td style="text-align: right"><dx:ASPxLabel ID="lblJianYiLY" runat="server" Text="建议理由："></dx:ASPxLabel></td>
                                            <td align="left">
                                                <dx:ASPxTextBox ID="txtJianYiLY" ClientInstanceName="txtJianYiLY" runat="server" Width="600px" CssClass="FloatLeft">
                                                </dx:ASPxTextBox>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td style="text-align: right"><dx:ASPxLabel ID="lblShenHeYJ" runat="server" Text="审核意见："></dx:ASPxLabel></td>
                                            <td align="left">
                                                <dx:ASPxTextBox ID="txtShenHeLY" ClientInstanceName="txtShenHeLY" runat="server" Width="600px" CssClass="FloatLeft" Text="拟同意">
                                                </dx:ASPxTextBox>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td style="text-align: right"><dx:ASPxLabel ID="lblShenPiYJ" runat="server" Text="审批意见："></dx:ASPxLabel></td>
                                            <td align="left">
                                                <dx:ASPxTextBox ID="txtShenPiLY" ClientInstanceName="txtShenPiLY" runat="server" Width="600px" CssClass="FloatLeft" Text="同意">
                                                </dx:ASPxTextBox>
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                            </tr>

                        </table>

                        <table style="width: 100%">
                            <tr>
                                <td style="text-align: right;">
                                </td>
                            </tr>
                        </table>

                        <table style="width: 100%">
                            <tr>
                                <td style="text-align: right;">
                                    <hr />
                                    <dx:ASPxButton ID="btnSave" ClientInstanceName="btnSave" runat="server" Text="提交" AutoPostBack="false" UseSubmitBehavior="false" ClientSideEvents-Click="function(s,e){save();}">
                                    </dx:ASPxButton>
                                    <dx:ASPxButton ID="btnCancel" runat="server" Text="放弃" AutoPostBack="false" ClientSideEvents-Click="function(s,e){display('init',-1);}" UseSubmitBehavior="false">
                                    </dx:ASPxButton>
                                </td>
                            </tr>
                        </table>
                    </div>

                </div>
            </ContentTemplate>
        </asp:UpdatePanel>
        <dx:ASPxButton ID="btnQuery" runat="server" Text="查询" ClientInstanceName="btnQuery" ClientVisible="False" OnClick="btnQuery_Click"></dx:ASPxButton>
    </form>
</body>
</html>
